/**
 * Created by Tomkk on 2016/4/30.
 */
angular.module('app.routes',[])
    .config(function($stateProvider,$urlRouterProvider) {
        $urlRouterProvider.otherwise('login');
        $stateProvider
            .state('login', {
                url: "/login",
                templateUrl: "templates/login.html",
                controller: 'LoginCtrl'
            })
            .state('register',{
                    url:"/register",
                    templateUrl:"templates/register.html",
                    controller:'registerCtrl'
            })
            .state('listInfo',{
                    url:"/listInfo",
                    templateUrl:"templates/listInfo.html",
                    controller:"listInfoCtrl"
            })
            .state('addUser',{
                url:"/addUser",
                templateUrl:"templates/addUser.html",
                controller:"addUserCtrl"
            })
            .state('editUser',{
                url:"/editUser",
                templateUrl:"templates/editUser.html",
                controller:"editUserCtrl"
            })
        });